package com.example.service;

import com.example.dto.AddressTDO;
import com.example.entity.Address;
import com.example.vo.AddressVo;
import com.example.vo.DistrictVo;

import java.util.List;

public interface AddressService {

    List<AddressVo> getAddressByUserId(Integer id);

    void addAddress(AddressTDO addressTDO);

    void deleteAddressById(Integer id);

    void updateAddress(AddressTDO addressDTO);

    AddressVo getAddressById(Integer id);

    void setDefault(Integer id, Integer userId);

    AddressVo convert(Address address);

    Address convert(AddressTDO addressTDO);

    List<DistrictVo> getDistrictByParentId(Integer parent);

    List<String> getOrderAddress(Integer userId);

    Address getDefaultAddress(Long userId);
}
